package com.wanmait.employment.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
* Created by Mybatis Generator 2023/05/22
*/
@Data
@TableName(value = "userinfo")
public class Userinfo {
    /**
     * 用户id
     */
     @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 名字
     */
    @TableField(value = "name")
    private String name;


    /**
     * 用户名
     */
    @TableField(value = "username")
    private String username;

    /**
     * 盐
     */
    @TableField(value = "salt")
    private String salt;

    /**
     * 用户密码
     */
    @TableField(value = "userpass")
    private String userpass;

    /**
     * 手机号
     */
    @TableField(value = "tel")
    private String tel;

    /**
     * 邮箱
     */
    @TableField(value = "email")
    private String email;

    /**
     * 性别1男2女
     */
    @TableField(value = "sex")
    private String sex;

    /**
     * 生日
     */
    @TableField(value = "birthday")

    private Date birthday;

    /**
     * 注册日期
     */
    @TableField(value = "register_time")
    private Date registerTime;

    /**
     * 地区id
     */
    @TableField(value = "address_id")
    private Integer addressId;
//sheng
    @TableField(value = "province",exist = false)
    private Address province;
    //shi
    @TableField(value = "city",exist = false)
    private Address city;
    //qu
    @TableField(value = "address",exist = false)
    private Address address;

    //用户项目经验
    @TableField(value = "ProjectExperience",exist = false)
    List<ProjectExperience>  projectExperienceList;

    @TableField(value = "jobExperienceList",exist = false)
    List<JobExperience>  jobExperienceList;

   @TableField(value = "EducationalExperience",exist = false)
   List<EducationalExperience>educationalExperienceList;


//学历信息
  @TableField(value = "recruitment_education",exist = false)
    private RecruitmentEducation recruitmentEducation ;

    @TableField(value = "work_experience",exist = false)
    private WorkExperience workExperience ;

    @TableField(value = "workexperience_id")
    private Integer workexperienceId;

    @TableField(value = "nature_work",exist = false)
    private  NatureWork natureWork;

    @TableField(value = "nature_work_id")
    private Integer natureWorkId;
    /**
     * 详细地址
     */
    @TableField(value = "detailsa_address")
    private String detailsaAddress;

    /**
     * 身份证号
     */
    @TableField(value = "number_id")
    private String numberId;

    /**
     * 身份证正面
     */
    @TableField(value = "front_photo_id")
    private String frontPhotoId;

    /**
     * 身份证反面
     */
    @TableField(value = "back_photo_id")
    private String backPhotoId;

    /**
     * 身高
     */
    @TableField(value = "height")
    private Double height;

    /**
     * 体重
     */
    @TableField(value = "weight")
    private Double weight;

    /**
     * 健康状态
     */
    @TableField(value = "health_status")
    private String healthStatus;

    /**
     * 籍贯
     */
    @TableField(value = "native_id")
    private Integer nativeId;

    @TableField(value = "nation",exist = false)
    private Nation nation;

    /**
     * 宗教信仰
     */
    @TableField(value = "religious_belief")
    private String religiousBelief;

    /**
     * 头像
     */
    @TableField(value = "face")
    private String face;

    /**
     * 民族id
     */
    @TableField(value = "nation_id")
    private Integer nationId;

    /**
     * 政治面貌
     */
    @TableField(value = "political_outlook")
    private String politicalOutlook;

    /**
     * 婚姻状态
     */
    @TableField(value = "marital_status_id")
    private Integer maritalStatusId;
    @TableField(exist = false)
    private MaritalStatus maritalStatus;

    /**
     * 拉黑次数
     */
    @TableField(value = "userinfo_black_count")
    private Integer userinfoBlackCount;

    /**
     * 个人优势
     */
    @TableField(value = "personal_advantage")
    private String personalAdvantage;

    /**
     * 求职状态
     */
    @TableField(value = "state_id")
    private Integer stateId;
@TableField(value = "state",exist = false)
    private State state;
    /**
     * 期望职位
     */
    @TableField(value = "position_id")
    private Integer positionId;

    @TableField(exist = false)
    private Position position;
    /**
     * 期望城市
     */
    @TableField(value = "expectcity_id")
    private Integer expectcityId;

    /**
     * 期望薪资
     */
    @TableField(value = "expected_salary_id")
    private Integer expectedSalaryId;
   @TableField(exist = false)

   private ExpectedSalary expectedSalary;
    /**
     * 入职时间id(一周，一月)
     */
    @TableField(value = "entry_time_id")
    private Integer entryTimeId;

@TableField(exist = false)
    private  EntryTime entryTime;
    /**
     * 技能特长
     */
    @TableField(value = "skills")
    private String skills;
    /**
     * 学历
     */
    @TableField(value = "recruitment_id")
    private Integer recruitmentId;



    /**
     * 兴趣爱好
     */
    @TableField(value = "love")
    private String love;
    /**
     * 年龄
     */
    @TableField(value = "age")
    private Integer age;

    /**
     * 自我评价
     */
    @TableField(value = "evaluation")
    private String evaluation;

    /**
     * 浏览数
     */
    @TableField(value = "views_count")
    private Integer viewsCount;

    /**
     * 投递次数
     */
    @TableField(value = "deliver_count")
    private Integer deliverCount;

    /**
     * 个人荣誉
     */
    @TableField(value = "personal_honor")
    private String personalHonor;

    /**
     * 是否公开
     */
    @TableField(value = "make_public")
    private Boolean makePublic;

    /**
     * 是否拉黑
     */
    @TableField(value = "is_black")
    private Boolean isBlack;

    /**
     * 假删
     */
    @TableField(value = "enable")
    private Boolean enable;

    public static final String COL_NAME = "name";

    public static final String COL_USERNAME = "username";

    public static final String COL_SALT = "salt";

    public static final String COL_USERPASS = "userpass";

    public static final String COL_TEL = "tel";

    public static final String COL_EMAIL = "email";

    public static final String COL_SEX = "sex";

    public static final String COL_BIRTHDAY = "birthday";

    public static final String COL_REGISTER_TIME = "register_time";

    public static final String COL_ADDRESS_ID = "address_id";

    public static final String COL_DETAILSA_ADDRESS = "detailsa_address";

    public static final String COL_NUMBER_ID = "number_id";

    public static final String COL_FRONT_PHOTO_ID = "front_photo_id";

    public static final String COL_BACK_PHOTO_ID = "back_photo_id";

    public static final String COL_HEIGHT = "height";

    public static final String COL_WEIGHT = "weight";

    public static final String COL_HEALTH_STATUS = "health_status";

    public static final String COL_NATIVE_ID = "native_id";

    public static final String COL_RELIGIOUS_BELIEF = "religious_belief";

    public static final String COL_FACE = "face";

    public static final String COL_NATION_ID = "nation_id";

    public static final String COL_POLITICAL_OUTLOOK = "political_outlook";

    public static final String COL_MARITAL_STATUS_ID = "marital_status_id";

    public static final String COL_USERINFO_BLACK_COUNT = "userinfo_black_count";

    public static final String COL_PERSONAL_ADVANTAGE = "personal_advantage";

    public static final String COL_STATE_ID = "state_id";

    public static final String COL_POSITION_ID = "position_id";

    public static final String COL_EXPECTCITY_ID = "expectcity_id";

    public static final String COL_EXPECTED_SALARY_ID = "expected_salary_id";

    public static final String COL_JOB_TIME_ID = "job_time_id";

    public static final String COL_SKILLS = "skills";

    public static final String COL_LOVE = "love";

    public static final String COL_EVALUATION = "evaluation";

    public static final String COL_VIEWS_COUNT = "views_count";

    public static final String COL_DELIVER_COUNT = "deliver_count";

    public static final String COL_PERSONAL_HONOR = "personal_honor";

    public static final String COL_MAKE_PUBLIC = "make_public";

    public static final String COL_IS_BLACK = "is_black";

    public static final String COL_ENABLE = "enable";
}